package bm.com.project.server.project.mapper;

import bm.com.project.server.common.dto.SearchBaseDTO;
import bm.com.project.server.project.entity.BmProjectMemberEntity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2024-05-31 16:33:33
 */
@Mapper
public interface BmProjectMemberMapper extends BaseMapper<BmProjectMemberEntity> {

    BmProjectMemberEntity selectOne(QueryWrapper<Object> objectQueryWrapper);

    Integer selectCount(QueryWrapper<Object> queryWrapper);

    IPage<List> selectPage(Page<Object> page, @Param("queryParam") QueryWrapper<Object> queryWrapper);

    /**
     * 批量添加
     * @param members
     * @return
     */
    int saveBatch (List<BmProjectMemberEntity> members);

    /**
     * 获取列表
     * @param queue
     * @return
     */
    List<BmProjectMemberEntity> selectList (SearchBaseDTO queue);

}
